﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GPSManager.aspx.cs" Inherits="GPSTrackingWebsiteManager.Pages.GPSManager" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>GPS</title>
</head>
<body>
    <form id="form1" runat="server">
   <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <div>
            <fieldset>
                <legend>GPS Disponibles</legend>
                <telerik:RadGrid ID="GPSGrid" runat="server" AllowFilteringByColumn="False" AutoGenerateColumns="false" CellSpacing="0" GridLines="None" Height="300px" OnNeedDataSource="GPSModelGrid_NeedDataSource" OnUpdateCommand="GPSGrid_UpdateCommand">
                    <MasterTableView NoMasterRecordsText="No hay registros">
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>

                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>

                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Editar" />                           
                            <telerik:GridBoundColumn DataField="GpsImei" FilterControlAltText="Filter Imei column" HeaderText="Imei" UniqueName="GpsImei" MaxLength="15" ReadOnly="true" ForceExtractValue="Always">                                 
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Nombre" UniqueName="Name" MaxLength="50">
                                 <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>                            
                            <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column" HeaderText="Descripción" UniqueName="Description" MaxLength="100">
                                 <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>                           
                        </Columns>

                        <EditFormSettings>
                            <EditColumn UpdateText="Actualizar" CancelText="Cancelar" ButtonType="ImageButton"></EditColumn>
                        </EditFormSettings>
                    </MasterTableView>

                    <FilterMenu EnableImageSprites="False"></FilterMenu>
                </telerik:RadGrid>
            </fieldset>
        </div>       
    </form>
</body>
</html>
